package cn.xmirror.fsof.controller;


import cn.xmirror.fsof.service.TestService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <h1> TestController </h1>
 *
 * @author yuwenwen
 * @since 2022-07-01
 */
@RestController
public class TestController {

    private static final Logger logger = LoggerFactory.getLogger(TestController.class);

    //    @Reference
    @Autowired
    private TestService testService;

    @Autowired
    private ApplicationContext applicationContext;

    @RequestMapping("/test")
    public String test() {
        return testService.test();
    }

    @RequestMapping("/test2")
    public String test2() {
        return "result";
    }
}
